package com.ysd.lis.service;

import com.ysd.common.Result;
import com.ysd.common.dto.OrganizationDTO;
import com.ysd.lis.entity.SysMenu;
import com.ysd.lis.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysd.lis.request.RolePageParam;
import com.ysd.lis.request.SysRoleDetailsParam;
import com.ysd.lis.request.roleAddParam;

import java.util.List;

/**
 * <p>
 * cold_chain.t_role 服务类
 * </p>
 *
 * @author Bai
 * @since 2023-10-29
 */
public interface SysRoleService extends IService<SysRole> {

    public Result findRoleList();
    public Result getRoleList();
    public Result findRolePageList(RolePageParam pageParam);
    public Result findMenuList(SysMenu sysMenu);
    public Result getPermission();
    public Result addRole(roleAddParam role);
    public Result deleteRole(String id);
    public Result findRoleInfo(String id);
    public Result editRole(roleAddParam role);
    public Result findRoleListPlatform();
    public Result getMenuAndPointsByMouldId(SysRoleDetailsParam sysRoleDetailsParam);
    public Result getRoleAndModuleByRoleId(SysRoleDetailsParam sysRoleDetailsParam);
    public Result saveRoleByModuleIds(roleAddParam role);
    public Result deleteRoleByModuleId(roleAddParam role);
    Result saveRoleMenu(List<roleAddParam> roles);
    public Result saveRoleMenu(roleAddParam role);
    public Result deleteRoleMenu(roleAddParam role);
    public Result saveRolePoint(roleAddParam role);
    public Result deleteRolePoint(roleAddParam role);
    public Result getRoleDetails(SysRoleDetailsParam roleDetailsParam);
    public Result syncRole(OrganizationDTO organizationDTO);

}
